package com.school.vo;

import com.school.model.Permission;
import com.school.model.Role;

import java.util.List;

/**
 * 返回到前端的包含用户信和角色列表的对象
 */
public class UserRolesVo {
    private Integer userid;
    private String username;
    private List<Role> roles;
    private List<Permission> auths;

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Permission> getAuths() {
        return auths;
    }

    public void setAuths(List<Permission> auths) {
        this.auths = auths;
    }

    @Override
    public String toString() {
        return "UserRoles{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", roles=" + roles +
                ", auths=" + auths +
                '}';
    }
}
